#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:DOG.py
# author:wmf
# datetime:2021/4/17 21:31
# software: PyCharm
'''
this is function description
'''
# import module your need


import PEOPLE


class Dog:
    dog_count = [0]

    def __init__(self, name, life=80, attack=15):
        self.name = name
        self.life = life
        self.attack = attack
        self.dog_count[0] = self.dog_count[0] + 1

    def make_hurt(self, people):
        people.life = people.life - self.attack
        if people.attack > 0 and self.attack > 0:
            people.attack = people.attack - 2
        print("%s攻击了%s,%s的血量下降了%d" % (self.name, people.name, people.name, self.attack))
        print("%s的剩余血量为%d" % (people.name, people.life))
